<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: fudada
  Date: 2021/1/25
  Time: 18:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<% ArrayList<String> objects = new ArrayList<>();
    objects.add("aa");
    objects.add("bb");
    objects.add("cc");
    objects.add("dd");
    pageContext.setAttribute("list", objects);
%>

<c:forEach items="${list}" var="str">
    ${str} <br>
</c:forEach>




</body>
</html>
